config = {
  //1 发布 2是dev 3是test
  casIndex: 1,
  proLogin: 'https://ids.xmu.edu.cn/authserver/login?service=https://zbgz.xmu.edu.cn/prod-api/xmu-sys/user/sms/current-user',
  proLogout: 'https://ids.xmu.edu.cn/authserver/logout?service=https://zbgz.xmu.edu.cn/prod-api',
  devLogin: 'http://localhost:8089/cas_overlay_war_exploded/login?service=http://127.0.0.1:8080/xmu-sys/user/sms/current-user',
  devLogout: 'http://localhost:8089/cas_overlay_war_exploded/logout?service=http://127.0.0.1:8080',
  testLogin: 'http://192.168.25.71:8232/cas/login?service=http://127.0.0.1:8080/xmu-sys/user/sms/current-user',
  testLogout: 'http://192.168.25.71:8232/cas/logout?service=http://127.0.0.1:8080',
}

module.exports = {
  /**
   * 开启cas
   */
  casEnable: true,
  /**
   * 正式环境 cas url
   *
   */
  casLoginUrl: config.casIndex === 1 ? config.proLogin : config.casIndex === 2 ? config.devLogin : config.testLogin,
  casLogoutUrl: config.casIndex === 1 ? config.proLogout : config.casIndex === 2 ? config.devLogout : config.testLogout,


  /**
   * 侧边栏主题 深色主题theme-dark，浅色主题theme-light
   */
  sideTheme: 'theme-dark',

  /**
   * 是否系统布局配置
   */
  showSettings: false,

  /**
   * 是否显示顶部导航
   */
  topNav: false,

  /**
   * 是否显示 tagsView
   */
  tagsView: true,

  /**
   * 是否固定头部
   */
  fixedHeader: false,

  /**
   * 是否显示logo
   */
  sidebarLogo: true,

  /**
   * 是否显示动态标题
   */
  dynamicTitle: false,

  /**
   * @type {string | array} 'production' | ['production', 'development']
   * @description Need show err logs component.
   * The default is only used in the production env
   * If you want to also use it in dev, you can pass ['production', 'development']
   */
  errorLog: 'production'
}


